qTorch: The Quantum Tensor Contraction Handler

نویسندگان

  • E. Schuyler Fried
  • Nicolas P. D. Sawaya
  • Yudong Cao
  • Ian D. Kivlichan
  • Jhonathan Romero
  • Alán Aspuru-Guzik
چکیده

Classical simulation of quantum computation is necessary for studying the numerical behavior of quantum algorithms, as there does not yet exist a large viable quantum computer on which to perform numerical tests. Tensor network (TN) contraction is an algorithmic method that may be used for such simulations, often greatly reducing the computational cost over methods that simulate the full Hilbert space. In this study we implement a parallel tensor network contraction program for simulating a variety of quantum circuits, including the quantum approximate optimization algorithm (QAOA) applied to Max-Cut and quantum circuits for quantum chemistry simulations. We show simulation results for 3through 7-regular MaxCut/QAOA circuits, even successfully simulating up to 100 qubits for some of the 3-regular circuits. We test two different methods for generating the ordering of tensor index contractions: one is based on the tree decomposition of the line graph, while the other generates ordering using a straight-forward stochastic scheme. Through studying instances of QAOA circuits, we show the expected result that as the treewidth of the quantum circuit’s line graph decreases, TN contraction becomes significantly more efficient than simulating the whole Hilbert space. This tradeoff occurs when the Max-Cut problem’s graph regularity is five or six, suggesting that tensor contraction methods are superior for simulating Max-Cut/QAOA with graphs of regularities approximately five and below. The stochastic contraction method outperforms the line graph based method only when the time to calculate a reasonable tree decomposition is prohibitively expensive. Finally, we release our software package, qTorch (The Quantum TensOR Contraction Handler), intended for general quantum circuit simulation. The software may be used to more quickly study the numerical behavior of arbitrary quantum algorithms. For a nontrivial subset of these quantum circuits, 50 to 100 qubits can easily be simulated on a single compute node, an ability that is beyond of reach of other modern software packages.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Performance optimization of tensor contraction expressions for many-body methods in quantum chemistry.

Complex tensor contraction expressions arise in accurate electronic structure models in quantum chemistry, such as the coupled cluster method. This paper addresses two complementary aspects of performance optimization of such tensor contraction expressions. Transformations using algebraic properties of commutativity and associativity can be used to significantly decrease the number of arithmeti...

متن کامل

Geometrical Deformation Analysis of Gotvand-Olya Dam Using Permanent Geodetic Monitoring Network Observations

  In this paper, two-dimensional deformation analysis of the Gotvand-Olya dam is done using daily, monthly, seasonal and annual displacement vectors derived from permanent observations of the dam geodetic monitoring network.  The strain tensor and its invariant parameters like dilatation and maximum shear are computed as well. Nonlinear finite element interpolation based on C1 Cubic Bezier int...

متن کامل

Complier Techniques for Efficient Parallelization of Out-of-Core Tensor Contractions∗

The Tensor Contraction Engine (TCE) is a domain-specific compiler for implementing complex tensor contraction expressions arising in quantum chemistry applications modeling electronic structure. This paper develops a performance model for tensor contractions, considering both disk I/O as well as inter-processor communication costs, to facilitate performance-model driven loop optimization for th...

متن کامل

Identifying Cost-Effective Common Subexpressions to Reduce Operation Count in Tensor Contraction Evaluations

Complex tensor contraction expressions arise in accurate electronic structure models in quantum chemistry, such as the coupled cluster method. Transformations using algebraic properties of commutativity and associativity can be used to significantly decrease the number of arithmetic operations required for evaluation of these expressions. Operation minimization is an important optimization step...

متن کامل

Automated Operation Minimization of Tensor Contraction Expressions in Electronic Structure Calculations

Complex tensor contraction expressions arise in accurate electronic structure models in quantum chemistry, such as the Coupled Cluster method. Transformations using algebraic properties of commutativity and associativity can be used to significantly decrease the number of arithmetic operations required for evaluation of these expressions, but the optimization problem is NP-hard. Operation minim...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1709.03636  شماره 

صفحات  -

تاریخ انتشار 2017